home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 3 / Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso / pd / utilities / kingcon / kingcon1.2 / installation < prev    next >
Text File  |  1996-05-20  |  3KB  |  100 lines

  1. ; $VER: Installation 1.2 (22.03.94)
  2.  
  3. FailAt 21
  4.  
  5. Echo "*E[4mKingCON v1.2 installation-script. Copyright © 1993 David Larsson*E[0m"
  6. Echo ""
  7.  
  8.  
  9. ; We shouldn't install an earlier or identical version of KingCON-handler
  10. ; without asking first.
  11. Version >NIL: L:KingCON-handler VERSION 1 REVISION 2
  12. IF NOT WARN
  13.     Echo "You are trying to install an older or identical version of KingCON-handler."
  14.     Ask  "Do you still want to continue (Y/N)?"
  15.  
  16.     IF NOT WARN    ; User aborts!
  17.         Echo ""
  18.         Echo "Installation aborted."
  19.         SKIP End
  20.     ENDIF
  21.     Echo ""
  22. ENDIF
  23.  
  24. CPU >NIL: CHECK 68020        ; This checks for the presence of
  25.                 ; a faster processor and copies
  26.                 ; the appropriate file
  27.                 ; Note that KingCON-handler.020
  28.                 ; is renamed!!
  29. IF WARN
  30.     Echo "Copying 68000-version of *E[1mKingCON-handler to L:*E[0m..." NOLINE
  31.     Copy Handler/KingCON-handler L: CLONE
  32. ELSE
  33.     Echo "Copying 68020-version of *E[1mKingCON-handler to L:*E[0m..." NOLINE
  34.     Copy Handler/KingCON-handler.020 L:KingCON-handler CLONE  ; Renamed!
  35. ENDIF
  36.  
  37. Echo "Done"
  38.  
  39.  
  40. Echo "Copying *E[1mKingCON-mountlist to DEVS:*E[0m..." NOLINE
  41. Copy Handler/KingCON-mountlist DEVS: CLONE
  42. Echo "Done"
  43.  
  44. ; Remove the previous version of KCON:
  45. Assign KCON: DISMOUNT
  46. Assign KRAW: DISMOUNT
  47.  
  48. Echo "Mounting *E[1mKCON:*E[0m and *E[1mKRAW:*E[0m..." NOLINE
  49. Mount KCON: from DEVS:KingCON-mountlist
  50. Mount KRAW: from DEVS:KingCON-mountlist
  51. Echo "Done"
  52. Echo ""
  53. Echo "The script has mounted KCON: and KRAW: for you. For a more permanent"
  54. Echo "installation, you would probably like them to be mounted automatically"
  55. Echo "every time you start your Amiga. In that case, the startup-sequence"
  56. Echo "must be modified, by adding these lines to s:user-startup"
  57. Echo "   Mount KCON: from DEVS:KingCON-mountlist"
  58. Echo "   Mount KRAW: from DEVS:KingCON-mountlist"
  59. Echo ""
  60.  
  61. ; We should never add any Mount-commands to the user-startup if
  62. ; it is already done. This checks for the presence of the commands.
  63. ; (Well, if we find the word "DEVS:KingCON-mountlist", we can be pretty
  64. ;  sure that KCON: or CON: are mounted in that script.)
  65. Search >NIL: FROM s:user-startup SEARCH DEVS:KingCON-mountlist
  66.  
  67. IF WARN ; No commands were found
  68.     Ask  "Do you want these Mount-commands to be added to s:user-startup (Y/N)?"
  69.  
  70.     IF WARN ; Yes!
  71.         Echo ""
  72.         Echo "Adding to *E[1ms:user-startup*E[0m..." NOLINE
  73.         Echo "" >>s:user-startup
  74.         Echo "; This mounts KCON and KRAW" >>s:user-startup
  75.         Echo "Mount KCON: from DEVS:KingCON-mountlist" >>s:user-startup
  76.         Echo "Mount KRAW: from DEVS:KingCON-mountlist" >>s:user-startup
  77.         Echo "Done"
  78.     ENDIF
  79. ENDIF
  80.  
  81. Echo ""
  82. Echo "To replace old CON and RAW, add the following lines to S:user-startup"
  83. Echo "BEFORE the Mount-commands:"
  84. Echo "   Assign CON: DISMOUNT"
  85. Echo "   Assign RAW: DISMOUNT"
  86. Echo "Then change the words 'KCON:' and 'KRAW:' to 'CON:' and 'RAW:'"
  87. Echo "respectively in the Mount-commands."
  88.  
  89.  
  90. Echo ""
  91. Echo "Installation has completed. If no errors occured, you should now be"
  92. Echo "able to access a device called 'KCON:' (and one called 'KRAW:')."
  93.  
  94. LAB End
  95.  
  96. Echo ""
  97. Echo ""
  98. Echo ""
  99. Echo "                                    *E[0 p*E[3mClose the window or wait forever!*E[0m" NOLINE
  100.